package java_DesignPattern.SixPrinciple.OpenAndClosePrinciple;

/**
 * 开闭原则测试类
 * 对程序的拓展开放,对程序的修改关闭
 */
public class Test {

    public static void main(String[] args) {
        //创建输入法对象
        SouGoInput souGoInput = new SouGoInput();
        //设置皮肤
        //souGoInput.setSkin(new HeiMaSkin());
        //拓展皮肤测试
        souGoInput.setSkin(new TZSkin());
        //展示皮肤
        souGoInput.dispaly();
    }
}
